import request from '@/utils/request'

export function fetchMachines(query) {
  return request({
    url: '/machine/list',
    method: 'get',
    params: query
  })
}
export function updateMachine(query) {
  return request({
    url: '/machine/update',
    method: 'post',
    data: query
  })
}
export function getVNC(query) {
  return request({
    url: '/machine/VNC',
    method: 'get',
    params: query
  })
}